package org.kaleido.client.activity;

import org.kaleido.client.ClientFactory;
import org.kaleido.client.view.IListLogDataView;

import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.AcceptsOneWidget;

/**
 * Activities are started and stopped by an ActivityManager associated with a container Widget.
 */
public class EditLogActivity extends AbstractActivity implements IListLogDataView.Presenter {
    /**
     * Used to obtain views, eventBus, placeController. Alte
     * rnatively, could be injected via GIN.
     */
    private ClientFactory clientFactory;

    public EditLogActivity(ClientFactory clientFactory) {
        this.clientFactory = clientFactory;
    }

    @Override
    public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
        Log.debug("LoginActivity | init activity");
//        ILoginView view = clientFactory.getLoginView();
//        view.setPresenter(this);
//        containerWidget.setWidget(view.asWidget());
        
    }
}
